﻿using AiShou.BLL;
using AiShou.IBLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace AiShou.WebSite
{
    /// <summary>
    /// VideoDeleteHandler 的摘要说明
    /// </summary>
    public class VideoDeleteHandler : IHttpHandler
    {
        IVideoManager videoManager = new VideoManager();

        public void ProcessRequest(HttpContext context)
        {
          var videoId = context.Request.QueryString["videoId"];
            if (string.IsNullOrWhiteSpace(videoId))
            {
                return;
            }
            videoManager.DeleteVideo(videoId);
            //context.Response.ContentType = "text/plain";
            //context.Response.Write("Hello World");
            context.Response.End();
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}